// HR_Game.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
using namespace std;
#include <Windows.h>

#include "GameCharacter.h"

void test(char a[20])
{
	cout<<sizeof(a)<<endl;
}

typedef union _FLOAT_LONG
{
	DWORD   e;
	LONG     l;
} FLOAT_LONG, *PFLOAT_LONG;

int _tmain(int argc, _TCHAR* argv[])
{
	STARTRECORDLOG();
	HANDLE hConsole = ::GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_SCREEN_BUFFER_INFO csbi;
	::GetConsoleScreenBufferInfo(hConsole, &csbi);
	::SetConsoleTextAttribute(hConsole, FOREGROUND_BLUE);
	CPlayGame playGame;
	playGame.InitGame(4, 5);
	playGame.StartGame();
	playGame.PrintBoard();
	::SetConsoleTextAttribute(hConsole, csbi.wAttributes);
	UINT uGamerID = 0;
	playGame.AddGamer(1, 2, 2, 3, uGamerID);
	cout<<endl;
	playGame.PrintBoard();
	playGame.MoveGamer(uGamerID, MF_MOVE_HORZ, 1);
	cout<<endl;
	playGame.PrintBoard();
	ENDRECORDLOG();
	system("pause");
	return 0;
}
